package br.net.woodstock.tickettoride.api.jee6.manager.impl;

import javax.ejb.EJB;
import javax.ejb.Local;
import javax.ejb.Stateless;

import br.net.woodstock.tickettoride.api.core.SimpleQueryableRepository;
import br.net.woodstock.tickettoride.api.core.SimpleRepository;
import br.net.woodstock.tickettoride.api.manager.CertificateService;
import br.net.woodstock.tickettoride.api.manager.SessionService;
import br.net.woodstock.tickettoride.api.manager.common.AbstractSessionService;

@Local(SessionService.class)
@Stateless(name = "sessionService")
public class SessionServiceImpl extends AbstractSessionService {

	private static final long			serialVersionUID	= 7457780754722961332L;

	@EJB(name = "simpleRepository")
	private SimpleRepository			simpleRepository;

	@EJB(name = "simpleQueryableRepository")
	private SimpleQueryableRepository	queryableRepository;

	@EJB(name = "certificateService")
	private CertificateService			certificateService;

	@Override
	public CertificateService getCertificateService() {
		return this.certificateService;
	}

	@Override
	public SimpleRepository getSimpleRepository() {
		return this.simpleRepository;
	}

	@Override
	public SimpleQueryableRepository getSimpleQueryableRepository() {
		return this.queryableRepository;
	}

}
